<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>查看</title>
    <link href="/static/css/bootstrap.min.css" rel="stylesheet"/>
</head>
<body>

<h1 class="page-header">修改密码</h1>


<form action="" method="post" form-ajax>
    <div class="form-group">
        <label for="exampleInputEmail1">原密码</label>
        <input type="password" class="form-control" id="exampleInputEmail1" placeholder="">
    </div>
    <div class="form-group">
        <label for="exampleInputPassword1">新密码</label>
        <input type="password" class="form-control" id="exampleInputPassword1" placeholder="">
    </div>
    <div class="form-group">
        <label for="exampleInputPassword1">新密码确认</label>
        <input type="password" class="form-control" id="exampleInputPassword1" placeholder="">
    </div>
    <button type="submit" class="btn btn-default">提交</button>
</form>



<script type="text/javascript" src="/static/js/jquery.min.js"></script>
<script type="text/javascript" src="/static/laypage/laypage.js"></script>
<script type="text/javascript" src="/static/js/form-ajax.js"></script>
<script type="text/javascript" src="/static/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/static/js/jquery.validate.min.js"></script>
<script type="text/javascript">
    function del(id){
        if(confirm('确认删除此记录？'))
            $.post('/user/del',{
                id:id
            },function(data){
                if(data){
                    alert('操作成功');location.reload();
                }
                else{
                    alert('操作失败')
                }
            },'json');
    }
</script>
</body>
</html>